// <copyright file="SyndicationController.cs" company="Clever Software">
// Copyright (c) 2013, 2014 All Right Reserved, http://www.cleversoftware.by
//
// This source is subject to the Microsoft Permissive License.
// Please see the License.txt file for more information.
// All other rights reserved.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY 
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// </copyright>
// <author>Clever Software</author>
// <email>info@cleversoftware.by</email>
// <date>2014-02-04</date> 
// <summary>CleverCMS source code</summary>

namespace CleverCMS.Web.Controllers
{
    using System.ServiceModel.Syndication;
    using System.Web.Mvc;

    public class SyndicationController : CleverCmsController
    {

      //TODO: Do we need this syndication mechanism at the moment?
      //  private readonly SyndicationService _syndicationService;
      //  private readonly SeoService seoService;

      //  public SyndicationController(SyndicationService _syndicationService, SeoService seoService)
      //  {
      //      this._syndicationService = _syndicationService;
      //      this.seoService = seoService;
      //  }

      ////[AcceptVerbs(HttpVerbs.Get)]
      //  [OutputCache(CacheProfile = "Syndication")]
      //  public ActionResult Sitemap()
      //  {
      //      Sitemap sitemap = this._syndicationService.CreateSitemap(base.GenerateEntryUrl, GetWebsiteUrl());
      //      return new SitemapResult(sitemap);
      //  }

      //  [OutputCache(CacheProfile = "Syndication")]
      //  public ActionResult Rss()
      //  {
      //      SyndicationFeed feed = this.GetSindicationFeed();
      //      return new SyndicationActionResult(new Rss20FeedFormatter(feed));
      //  }

      //  [OutputCache(CacheProfile = "Syndication")]
      //  public ActionResult Atom()
      //  {
      //      SyndicationFeed feed = this.GetSindicationFeed();
      //      return new SyndicationActionResult(new Atom10FeedFormatter(feed));
      //  }

      //  private SyndicationFeed GetSindicationFeed()
      //  {
      //      string url = GetWebsiteUrl();
      //      return this._syndicationService.BuildFeed(url, base.GenerateEntryUrl);
      //  }

      //  public ContentResult GenerateAlias(string source)
      //  {
      //      return new ContentResult {Content = this.seoService.CreateAlias(source)};
      //  }
    }
}